package cn.tedu.service;


import cn.tedu.dao.CarMapper;
import cn.tedu.pojo.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service //ioc
public class CarServicelmpl implements CarService{

    @Autowired//依赖注解dao层,使用dao的功能
    private CarMapper mapper;

    //查询所有数据
    public List<Car> selectList(){
        return mapper.selectList();
    }

}
